package com.example.domain;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface DepartmentRepository extends JpaRepository<Department,Long> {

/*    *//**
     * 扩展JPA 功能，使用@Query 来定义简单的查询语句  或者 扩展jpa 接口
     * @param name
     * @return
     *//*
    @Query("select d from department d where d.name = ?1")
    Department findByNameNAndName(String name);*/

    
}
